home *** CD-ROM | disk | FTP | other *** search
/ Computer Select (Limited Edition) / Computer Select.iso / pcc / v04n12 / batch2.exe / BESTBACK.BAT < prev    next >
Encoding:
DOS Batch File  |  1991-10-10  |  470 b   |  21 lines

  1. @ECHO OFF
  2. REM This is BESTBACK.BAT
  3. IF %1!==! GOTO OOPS
  4. ATTRIB +A
  5. ECHO Backing up files to drive %1 . . .
  6. :TOP
  7. XCOPY . %1 /M > NUL
  8. IF ERRORLEVEL 4 IF NOT ERRORLEVEL 5 GOTO FULL
  9. ECHO All files copied to %1
  10. GOTO END
  11. :FULL
  12. ECHO Put a new formatted blank disk in %1, then
  13. PAUSE
  14. ECHO Copying additional files to drive %1 . . . 
  15. GOTO TOP
  16. :OOPS
  17. ECHO Enter the drive letter where you want
  18. ECHO your copies to go, after the %0,
  19. ECHO e.g., %0 A:  or %0 B:
  20. :END
  21.